Code Review: Check If A Number N Is A Power Of K